﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
namespace Libra.Receipt.Application.Entity;

/// <summary>
/// 过磅记录表
/// </summary>
[SugarTable("t_weight_log", "过磅记录表")]
[Tenant("1300000000001")]
public class WeightLog : EntityBaseData
{
    /// <summary>
    /// 项目编号
    /// </summary>
    [SugarColumn(ColumnName = "project_id", ColumnDescription = "项目编号")]
    public long? ProjectId { get; set; }

    /// <summary>
    /// 项目名称
    /// </summary>
    [SugarColumn(ColumnName = "project_name", ColumnDescription = "项目名称", Length = 128)]
    public string? ProjectName { get; set; }

    /// <summary>
    /// 设备编号
    /// </summary>
    [SugarColumn(ColumnName = "device_id", ColumnDescription = "设备编号")]
    public long? DeviceId { get; set; }

    /// <summary>
    /// 车牌号
    /// </summary>
    [SugarColumn(ColumnName = "license_plate", ColumnDescription = "车牌号", Length = 32)]
    public string? LicensePlate { get; set; }

    /// <summary>
    /// 原始车牌号
    /// </summary>
    [SugarColumn(ColumnName = "original_license_plate", ColumnDescription = "原始车牌号", Length = 32)]
    public string? OriginalLicensePlate { get; set; }

    /// <summary>
    /// 称重重量
    /// </summary>
    [SugarColumn(ColumnName = "weight", ColumnDescription = "称重重量", Length = 10, DecimalDigits = 4)]
    public decimal? Weight { get; set; }

    /// <summary>
    /// 称重时间
    /// </summary>
    [SugarColumn(ColumnName = "weighing_time", ColumnDescription = "称重时间")]
    public DateTime? WeighingTime { get; set; }

    /// <summary>
    /// 称重开始时间
    /// </summary>
    [SugarColumn(ColumnName = "weighing_start_time", ColumnDescription = "称重开始时间")]
    public DateTime? WeighingStartTime { get; set; }

    /// <summary>
    /// 称重结束时间
    /// </summary>
    [SugarColumn(ColumnName = "weighing_end_time", ColumnDescription = "称重结束时间")]
    public DateTime? WeighingEndTime { get; set; }

    /// <summary>
    /// 称重时长
    /// </summary>
    [SugarColumn(ColumnName = "weight_duration", ColumnDescription = "称重时长")]
    public Int16? WeightDuration { get; set; }

    /// <summary>
    /// 称重曲线保存路径-相对路径
    /// </summary>
    [SugarColumn(ColumnName = "weight_curve_oss_url", ColumnDescription = "称重曲线保存路径-相对路径", Length = 1024)]
    public string? WeightCurveOssUrl { get; set; }

    /// <summary>
    /// 称重照片保存路径-相对路径
    /// </summary>
    [SugarColumn(ColumnName = "weight_image_url", ColumnDescription = "称重照片保存路径-相对路径", Length = 1024)]
    public string? WeightImageUrl { get; set; }

    /// <summary>
    /// 称重视频保存路径-相对路径
    /// </summary>
    [SugarColumn(ColumnName = "weight_video_url", ColumnDescription = "称重视频保存路径-相对路径", Length = 1024)]
    public string? WeightVideoUrl { get; set; }

    /// <summary>
    /// 同步时间-时间戳
    /// </summary>
    [SugarColumn(ColumnName = "sync_time", ColumnDescription = "同步时间-时间戳")]
    public DateTime? SyncTime { get; set; }

    /// <summary>
    /// 收料单id
    /// </summary>
    [SugarColumn(ColumnName = "material_detail_id", ColumnDescription = "收料单id", Length = 1024)]
    public string? MaterialDetailId { get; set; }

    /// <summary>
    /// 匹配类型 1=手动匹配 2=自动匹配
    /// </summary>
    [SugarColumn(ColumnName = "match_type", ColumnDescription = "匹配类型 1=手动匹配 2=自动匹配")]
    public Int16? MatchType { get; set; }

    /// <summary>
    /// 收发类型 1=收料 2=发料
    /// </summary>
    [SugarColumn(ColumnName = "weight_dispatch_type", ColumnDescription = "收发类型 1=收料 2=发料")]
    public Int16? WeightDispatchType { get; set; }

    /// <summary>
    /// 过磅业务状态 1=待匹配 2=已匹配 3=已作废
    /// </summary>
    [SugarColumn(ColumnName = "weight_status", ColumnDescription = "过磅业务状态 1=待匹配 2=已匹配 3=已作废")]
    public Int16? WeightStatus { get; set; }

    /// <summary>
    /// 
    /// </summary>
    [SugarColumn(ColumnName = "weight_guard_mode", ColumnDescription = "")]
    public Int16? WeightGuardMode { get; set; }

    /// <summary>
    /// 0-否 1-是
    /// </summary>
    [SugarColumn(ColumnName = "local_weighbridge", ColumnDescription = "0-否 1-是")]
    public Int16? LocalWeighbridge { get; set; }

    ///// <summary>
    ///// 软删除
    ///// </summary>
    //[SugarColumn(ColumnName = "is_delete", ColumnDescription = "软删除")]
    //public bool IsDelete { get; set; }

}
